package com.cskaoyan.market.controller.wx;

import com.cskaoyan.market.service.wx.WxHomeService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName WxHomeController
 * @Description
 * @Author MZ
 * @Date 2023/5/20 14:11
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;

    @GetMapping("index")
    public Object index() {

        Map<String,Object> result = wxHomeService.getIndex();

        return ResponseUtil.ok(result);
    }

}
